package siswar.driver;

import java.util.Date;
import java.util.Set;

import sisdroid.framework.model.Location;
import sisdroid.framework.observers.ScanCompletedObserver;

public class netObserver implements ScanCompletedObserver
{

	public String netsInformation;
	@Override
	public boolean scanCompleted(Set<Location> data)
	{
		java.util.Date date		= new Date();
		netsInformation			= date.toGMTString();
		
		for ( Location l : data )
		{
			if ( l.getType().equalsIgnoreCase("gps") )
			{
				netsInformation += " @ ";
				netsInformation += l.getValue( );
				break;
			}
		}
		netsInformation += " found " + data.size() + " total.";
		
		return true;
	}

}
